;;; assembly functions used by memory manager
global load_CR3
global enable_paging
global get_CR2

[section .mm_s_text]	
get_CR2:
	mov eax, cr2
	ret;

enable_paging:
	mov eax, cr0
	or eax, 0x80000000
	mov cr0, eax
	ret
	
load_CR3:
	mov eax, [esp+4]
	mov cr3, eax
	ret
